package com.person.webdemoproject2.service;

import com.person.webdemoproject2.pojo.*;
import org.springframework.stereotype.Service;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

@Service
public interface FindService {
    User userinfo(String token);

    Integer countf(String token);

    Integer fans(String token);

    User byusername(String username);

   List< UserRelationship> fname(String token);


   List<Post> getPostsByDate(LocalDate begin, LocalDate end,Integer page,Integer pageSize);

    List<Post> getPostsByLikes(Integer page,Integer pageSize);

    List<Post> getPostsBykeyword(String keyword);

    List<Post> collections(String token);

    List<Comment> comments(Integer postId);

    List<reComment> recomments(Integer commentId, int page, int pageSize);


    List<Post> getPostsByfans(String token, int page, int pageSize);

    List<Post> getPostsByuserid(String token, int page, int pageSize);

    List<Comment> getCommentByuserid(String token, int page, int pageSize);

    List<Post> GetPostsByuserid(Integer userid, int page, int pageSize);

    Post getPostById(Integer postId);

    User getUserByID(Integer userId);
}
